package com.cyj.dream.file;

import cn.hutool.core.date.DateUtil;
import com.cyj.dream.file.contacts.FileConstant;
import com.cyj.dream.security.annotation.EnableDreamResourceServer;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @Description: 文件管理中心启动类
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.file
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-26
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Slf4j
@EnableCaching
@EnableDreamResourceServer
@EnableDiscoveryClient
@MapperScan(FileConstant.MAPPER_URL)
@SpringBootApplication(scanBasePackages = {FileConstant.SCAN_BASE_PACKAGES_URL})
public class DreamFileManagementApplication {

    /**
     * 项目启动方法
     *
     * @param args the input arguments
     * @date 2021-9-26
     * @author Sunny Chen
     */
    public static void main(String[] args) {
        log.info("梦享云--文件管理中心项目开始启动ing！======>{}", DateUtil.now());
        SpringApplication.run(DreamFileManagementApplication.class);
        log.info("梦享云--文件管理中心项目启动成功ing.......！======>{}", DateUtil.now());
    }

}
